home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 10 / BBS In A Box Volume X (AMUG) (January 1994).bin / Files / Prog / U-Z / VideoToolBox.cpt / VideoToolboxSources / ffprintf.c < prev    next >
MacBinary  |  1993-03-30  |  1.6 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Tue Mar 30 15:36:27 1993, modified Tue Mar 30 15:36:27 1993, creator Think C, type ASCII, 945 bytes "ffprintf.c" , at 0x431 428 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 66 66 70 72 69 6e | 74 66 2e 63 00 00 00 00 |..ffprin|tf.c....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 01 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 03 b1 00 | 00 01 ac a7 de 5f cb a7 |........|....._..|
|00000060| de 5f cb 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |._......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 09 94 00 00 |........|........|
|00000080| 2f 2a 0d 66 66 70 72 69 | 6e 74 66 2e 63 0d 66 70 |/*.ffpri|ntf.c.fp|
|00000090| 72 69 6e 74 66 28 6f 2c | 66 6f 72 6d 61 74 2c 2e |rintf(o,|format,.|
|000000a0| 2e 2e 29 3b 0d 50 72 69 | 6e 74 73 20 74 6f 20 74 |..);.Pri|nts to t|
|000000b0| 77 6f 20 6f 75 74 70 75 | 74 20 73 74 72 65 61 6d |wo outpu|t stream|
|000000c0| 73 2c 20 6f 5b 30 5d 20 | 61 6e 64 20 6f 5b 31 5d |s, o[0] |and o[1]|
|000000d0| 2c 20 75 73 75 61 6c 6c | 79 20 73 74 64 6f 75 74 |, usuall|y stdout|
|000000e0| 20 61 6e 64 20 61 20 66 | 69 6c 65 2e 20 0d 41 6e | and a f|ile. .An|
|000000f0| 79 20 4e 55 4c 4c 20 73 | 74 72 65 61 6d 20 69 73 |y NULL s|tream is|
|00000100| 20 69 67 6e 6f 72 65 64 | 2e 0d 49 74 20 61 6c 73 | ignored|..It als|
|00000110| 6f 20 73 61 76 65 73 20 | 61 6e 64 20 72 65 73 74 |o saves |and rest|
|00000120| 6f 72 65 73 20 74 68 65 | 20 70 6f 72 74 20 61 6e |ores the| port an|
|00000130| 64 20 47 44 65 76 69 63 | 65 2e 0d 43 6f 70 79 72 |d GDevic|e..Copyr|
|00000140| 69 67 68 74 20 28 63 29 | 20 31 39 39 30 20 44 65 |ight (c)| 1990 De|
|00000150| 6e 69 73 20 47 2e 20 50 | 65 6c 6c 69 0d 48 49 53 |nis G. P|elli.HIS|
|00000160| 54 4f 52 59 3a 0d 39 2f | 31 34 2f 39 30 09 64 67 |TORY:.9/|14/90.dg|
|00000170| 70 09 77 72 6f 74 65 20 | 69 74 2c 20 62 61 73 65 |p.wrote |it, base|
|00000180| 64 20 6f 6e 20 6d 79 20 | 55 73 65 72 50 72 69 6e |d on my |UserPrin|
|00000190| 74 66 28 29 2c 20 77 68 | 69 63 68 20 69 74 20 72 |tf(), wh|ich it r|
|000001a0| 65 70 6c 61 63 65 73 0d | 38 2f 32 37 2f 39 32 09 |eplaces.|8/27/92.|
|000001b0| 64 67 70 09 63 68 65 63 | 6b 20 66 6f 72 20 38 2d |dgp.chec|k for 8-|
|000001c0| 62 69 74 20 71 75 69 63 | 6b 64 72 61 77 20 62 65 |bit quic|kdraw be|
|000001d0| 66 6f 72 65 20 75 73 69 | 6e 67 20 47 44 65 76 69 |fore usi|ng GDevi|
|000001e0| 63 65 73 2e 0d 2a 2f 0d | 23 69 6e 63 6c 75 64 65 |ces..*/.|#include|
|000001f0| 20 22 56 69 64 65 6f 54 | 6f 6f 6c 62 6f 78 2e 68 | "VideoT|oolbox.h|
|00000200| 22 0d 23 69 6e 63 6c 75 | 64 65 20 3c 73 74 64 61 |".#inclu|de <stda|
|00000210| 72 67 2e 68 3e 20 20 20 | 20 20 20 2f 2a 20 66 6f |rg.h> | /* fo|
|00000220| 72 20 76 61 72 69 61 62 | 6c 65 2d 6e 75 6d 62 65 |r variab|le-numbe|
|00000230| 72 2d 6f 66 2d 61 72 67 | 75 6d 65 6e 74 20 6d 61 |r-of-arg|ument ma|
|00000240| 63 72 6f 73 20 2a 2f 0d | 0d 69 6e 74 20 66 66 70 |cros */.|.int ffp|
|00000250| 72 69 6e 74 66 28 46 49 | 4c 45 20 2a 73 74 72 65 |rintf(FI|LE *stre|
|00000260| 61 6d 5b 32 5d 2c 63 68 | 61 72 20 2a 66 6f 72 6d |am[2],ch|ar *form|
|00000270| 61 74 2c 2e 2e 2e 29 0d | 7b 0d 09 76 61 5f 6c 69 |at,...).|{..va_li|
|00000280| 73 74 20 61 72 67 73 3b | 0d 09 47 44 48 61 6e 64 |st args;|..GDHand|
|00000290| 6c 65 20 6f 6c 64 44 65 | 76 69 63 65 3b 0d 09 69 |le oldDe|vice;..i|
|000002a0| 6e 74 20 69 2c 6a 3b 0d | 09 6c 6f 6e 67 20 76 61 |nt i,j;.|.long va|
|000002b0| 6c 75 65 3d 30 3b 0d 20 | 20 0d 09 47 65 73 74 61 |lue=0;. | ..Gesta|
|000002c0| 6c 74 28 67 65 73 74 61 | 6c 74 51 75 69 63 6b 64 |lt(gesta|ltQuickd|
|000002d0| 72 61 77 56 65 72 73 69 | 6f 6e 2c 26 76 61 6c 75 |rawVersi|on,&valu|
|000002e0| 65 29 3b 0d 09 69 66 28 | 76 61 6c 75 65 3e 3d 67 |e);..if(|value>=g|
|000002f0| 65 73 74 61 6c 74 38 42 | 69 74 51 44 29 7b 0d 09 |estalt8B|itQD){..|
|00000300| 09 6f 6c 64 44 65 76 69 | 63 65 20 3d 20 47 65 74 |.oldDevi|ce = Get|
|00000310| 47 44 65 76 69 63 65 28 | 29 3b 0d 09 09 53 65 74 |GDevice(|);...Set|
|00000320| 47 44 65 76 69 63 65 28 | 47 65 74 4d 61 69 6e 44 |GDevice(|GetMainD|
|00000330| 65 76 69 63 65 28 29 29 | 3b 0d 09 7d 0d 09 0d 09 |evice())|;..}....|
|00000340| 2f 2a 20 70 72 69 6e 74 | 20 63 6f 70 69 65 73 20 |/* print| copies |
|00000350| 74 6f 20 61 6c 6c 20 6e | 6f 6e 2d 4e 55 4c 4c 20 |to all n|on-NULL |
|00000360| 73 74 72 65 61 6d 73 20 | 69 6e 20 73 74 72 65 61 |streams |in strea|
|00000370| 6d 5b 5d 20 2a 2f 0d 09 | 66 6f 72 28 69 3d 30 3b |m[] */..|for(i=0;|
|00000380| 69 3c 32 3b 20 69 2b 2b | 29 7b 0d 09 09 76 61 5f |i<2; i++|){...va_|
|00000390| 73 74 61 72 74 28 61 72 | 67 73 2c 20 66 6f 72 6d |start(ar|gs, form|
|000003a0| 61 74 29 3b 0d 09 09 69 | 66 28 73 74 72 65 61 6d |at);...i|f(stream|
|000003b0| 5b 69 5d 20 21 3d 20 4e | 55 4c 4c 29 20 6a 3d 76 |[i] != N|ULL) j=v|
|000003c0| 66 70 72 69 6e 74 66 28 | 73 74 72 65 61 6d 5b 69 |fprintf(|stream[i|
|000003d0| 5d 2c 66 6f 72 6d 61 74 | 2c 61 72 67 73 29 3b 0d |],format|,args);.|
|000003e0| 09 7d 0d 09 76 61 5f 65 | 6e 64 28 61 72 67 73 29 |.}..va_e|nd(args)|
|000003f0| 3b 0d 09 0d 09 69 66 28 | 76 61 6c 75 65 3e 3d 67 |;....if(|value>=g|
|00000400| 65 73 74 61 6c 74 38 42 | 69 74 51 44 29 53 65 74 |estalt8B|itQD)Set|
|00000410| 47 44 65 76 69 63 65 28 | 6f 6c 64 44 65 76 69 63 |GDevice(|oldDevic|
|00000420| 65 29 3b 0d 09 72 65 74 | 75 72 6e 20 6a 3b 0d 7d |e);..ret|urn j;.}|
|00000430| 0d 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000480| 00 00 01 00 00 00 01 6e | 00 00 00 6e 00 00 00 3e |.......n|...n...>|
|00000490| 03 66 00 00 00 00 00 00 | 00 00 01 fd 00 00 04 61 |.f......|.......a|
|000004a0| 00 d5 00 00 00 00 00 70 | 00 00 04 b4 00 00 04 71 |.......p|.......q|
|000004b0| 0a 66 66 70 72 69 6e 74 | 66 2e 63 69 02 00 00 00 |.ffprint|f.ci....|
|000004c0| 54 45 58 54 4b 41 48 4c | 00 00 00 00 00 00 00 00 |TEXTKAHL|........|
|000004d0| 00 00 54 45 58 54 4b 41 | 48 4c 00 00 00 00 00 00 |..TEXTKA|HL......|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 a7 e5 d5 b3 00 00 | 00 00 00 00 01 ac 05 83 |........|........|
|00000500| 03 ec 00 00 00 00 00 00 | 00 00 02 02 00 00 06 03 |........|........|
|00000510| 03 2e 00 00 00 00 00 00 | 00 00 02 53 00 00 06 31 |........|...S...1|
|00000520| 03 ba 00 00 00 00 00 00 | 00 00 00 d2 00 00 06 6f |........|.......o|
|00000530| 01 ed 00 00 00 00 00 26 | 00 00 05 be 00 00 06 95 |.......&|........|
|00000540| 02 c1 00 00 00 00 00 6d | 00 00 02 04 00 00 06 c0 |.......m|........|
|00000550| 01 f9 00 00 00 00 00 00 | 00 00 06 30 00 00 06 da |........|...0....|
|00000560| 02 51 00 00 00 00 00 07 | 00 00 05 ec 00 00 07 0d |.Q......|........|
|00000570| 04 00 00 00 00 00 00 fd | 00 00 02 1e 00 00 07 0d |........|........|
|00000580| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 20 73 74 |...H..Mo|naco. st|
|00000590| 72 65 61 6d 73 2c 20 6f | 5b 30 5d 20 61 6e 64 20 |reams, o|[0] and |
|000005a0| 6f 5b 31 5d 2c 20 00 06 | 00 04 00 50 00 20 01 dd |o[1], ..|...P. ..|
|000005b0| 02 3d 00 50 00 20 01 dd | 02 3d a7 de 27 8b 00 00 |.=.P. ..|.=..'...|
|000005c0| 02 1e 00 00 02 1e 00 00 | 02 1e 01 00 00 00 00 1e |........|........|
|000005d0| 00 50 00 20 01 dd 02 3d | 00 50 00 20 01 dd 02 3d |.P. ...=|.P. ...=|
|000005e0| 00 00 02 1e 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 01 00 00 00 01 6e 00 00 | 00 6e 00 00 00 3e 00 a9 |.....n..|.n...>..|
|00000600| e6 bc 09 8e 00 00 00 1c | 00 3e 00 00 4d 50 53 52 |........|.>..MPSR|
|00000610| 00 01 00 0a 03 ed ff ff | 00 00 00 00 00 00 00 00 |........|........|
|00000620| 03 f0 ff ff 00 00 00 4c | 00 ab e5 0c 00 00 00 00 |.......L|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+